import {
	httpGet,
	httpPost,
	httpPut
} from "../utils/request"




//查询某一个医生团队
export const teamDoctorApi = (data) => {
	return httpGet("/teams/detail", data)
}

//获取一个医生

export const aCharacterApi = (data) => {
	return httpGet("/doctors/detail", data)
}
// 根据团队id 获取 团队里面的医生 686f8d861c0e0785bff6223d
export const getDoctorByTeamIdApi = (data) => {
	return httpPost('/doctors/search', data)
}

//获取团队成员
export const memberDataApi = (data) => {
	return httpGet("/teams/getMembers", data)
}

//修改居民密码
export const revisePasswordApi = (data) => {
	return httpPut('/residents/update', data)
}
//获取居民签约的团队
export const contractedTeamApi = (data) => {
	return httpGet('/residents/getTeams', data)
}
//获取团队详情
export const fetchTeamDetailApi = (data) => {
	return httpGet('/teams/detail', data)
}
//获取其他人
export const getFamilyApi = (data) => {
	return httpPost('/relations/search', data)
}
//获取居民服务包
export const getServicePacksApi = (data) => {
	return httpGet('/signs/getServicePacks', data)
}
export const getServicePacksTeamApi =(data)=>{
	return httpGet('/teams/getServicePacks',data)
}
//添加服务
export const addServeApi =(data)=>{
	return httpPost('/services/add',data)
}
